<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>指尖上行</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/css.css">
<link rel="stylesheet" href="../../css/FinanceRechargeActivities.css">
<link rel="stylesheet" href="../../../bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../../../bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../../../bower_components/Ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="../../../dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="../../../dist/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="../../../bower_components/jvectormap/jquery-jvectormap.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<link rel="stylesheet" href="../../../bower_components/bootstrap-daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="../../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition skin-blue sidebar-mini"  data-treeview="5" data-treeview-menu="1">
<div class="wrapper">
  <header class="main-header"> <a class="logo"> <span class="logo-mini"><b>指</b></span> <span class="logo-lg"><img src="../../img/logo.png"/></span></a>
    <nav class="navbar navbar-static-top"><a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"></a></nav>
  </header>
  <aside class="main-sidebar">
    <section class="sidebar">
      <ul class="sidebar-menu" data-widget="tree">
       
      </ul>
    </section>
  </aside>
  <div class="content-wrapper">
    <section class="content-header">
      <button type="button" class="btn btn-primary addupdate1" data-toggle="modal" data-target="#modal-addupdate1">新建标准活动</button>
      <button type="button" class="btn btn-primary addupdate2" data-toggle="modal" data-target="#modal-addupdate2">新建充值活动</button>
    </section>
    <!-- 新建标准充值 -->
    <div class="modal fade" id="modal-addupdate1" style="display: none;">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">新建标准充值</h4>
          </div>
          <div class="modal-body">
            <div class="box box-primary">
              <div class="box-body">
                <div class="form-group">
                  <input type="hidden" id="id1"/>
                  <label>类型</label>
                  <label>标准充值</label>
                </div>
                <div class="form-group">
                  <label>充值钻石</label>
                  <input type="text" class="form-control w180" placeholder="充值钻石" id="paymentMoney1">
                </div>
                <div class="form-group">
                  <label>赠送钻石</label>
                  <input type="text" class="form-control w180" placeholder="赠送钻石" id="giveDiamond1">
                </div>
                <div class="form-group">
                  <label>支付金额</label>
                  <input type="text" class="form-control w180" placeholder="支付金额" id="payMoney">
                </div>
                <div class="form-group">
                  <label>应用渠道</label>
                  <input name="payClientType1" type="checkbox" value="1">IOS
                  <input name="payClientType1" type="checkbox" value="2">Android
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnaddupdate1">提交</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 新建充值活动 -->
    <div class="modal fade" id="modal-addupdate2" style="display: none;">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">新建充值活动</h4>
          </div>
          <div class="modal-body">
            <div class="box box-primary">
              <div class="box-body">
                <div class="form-group">
                  <input type="hidden" id="id2"/>
                  <label>类型</label>
                  <label>充值活动</label>
                </div>
                <div class="form-group">
                  <label>充值钻石</label>
                  <input type="text" class="form-control w180" placeholder="充值钻石" id="paymentMoney2">
                </div>
                <div class="form-group">
                  <label>赠送钻石</label>
                  <input type="text" class="form-control w180" placeholder="赠送钻石" id="giveDiamond2">
                </div>
                <div class="form-group">
                  <label>活动次数</label>
                  <input type="text" class="form-control w180" placeholder="活动次数" id="activityTime">
                  <input name="isActivity" type="checkbox" value="">首冲活动
                </div>
                <div class="form-group">
                  <label>支付金额</label>
                  <input type="text" class="form-control w180" placeholder="支付金额" id="payMoney2">
                </div>
                <div class="form-group">
                  <label>应用渠道</label>
                  <input name="payClientType2" type="checkbox" value="1">IOS
                  <input name="payClientType2" type="checkbox" value="2">Android
                </div>
                <div class="form-group">
                  <label class="fl">开始时间</label>
                  <input type="datetime-local" class="form-control w200" id="startTime">
                </div>
                <div class="form-group">
                  <label class="fl">结束时间</label>
                  <input type="datetime-local" class="form-control w200" id="overTime">
                </div>
                <div class="form-group">
                  <label>活动图片</label>
                  <input id="lefile1" type="file" name="myfile" style="display:none">
                  <input id="photoCover1" class="form-control w180" type="text">
                  <a class="btn upload" onclick="$('input[id=lefile1]').click();">选择文件 <i class="glyphicon glyphicon-folder-open" aria-hidden="true"></i></a>
                  <div class="imgfile1"></div>
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btnaddupdate2">提交</button>
          </div>
        </div>
      </div>
    </div>
    <section class="content">
      <div class="box">
        <div class="box-header">
          <h3 class="box-title">充值活动列表</h3>
        </div>
        <div class="box-body">
          <table id="example1" class="table table-bordered table-striped">
          </table>
          <div class="paginationDiv">
            <ul class="pagination">
              <li class="prev"><a>上一页</a></li>
              <li class="next"><a>下一页</a></li>
            </ul>
            <input type="text" value="1" class="form-control curpage"/>
            <button type="button" class="btn btn-default gopage">跳转</button>
            <span class="pageinfo"></span> </div>
        </div>
      </div>
    </section>
  </div>
</div>
<script type="text/html" id="datalist">
	<thead>
	  <tr role="row">
		<th>活动ID</th>
		<th>钻石数量</th>
		<th>赠送钻石</th>
		<th>需要支付金额</th>
		<th>活动开始时间</th>
		<th>活动结束时间</th>
		<th>活动参加次数</th>
		<th>应用渠道</th>
		<th>设置</th>
	  </tr>
    </thead>
	<tbody>
	<%for(var i = 0,len= dataset.length;i < len;i++){%>
	  <tr role="row">
		<td><%= dataset[i].id%></td>
		<td><%= dataset[i].paymentMoney%></td>
		<td><%= dataset[i].giveDiamond%></td>
		<td><%= dataset[i].payMoney%></td>
		<td><%= dataset[i].startTime%></td>
		<td><%= dataset[i].overTime%></td>
		<td><%= dataset[i].activityTime%></td>
		<td><%= dataset[i].payClientType%></td>
		<td>
		  <% if(dataset[i].activityType==1){%>
		  <button type="button" class="btn btn-info btn-xs addupdate1" data-toggle="modal" data-target="#modal-addupdate1" data-id="<%= dataset[i].id%>">修改活动</button>
		  <% }else{%>
		  <button type="button" class="btn btn-info btn-xs addupdate2" data-toggle="modal" data-target="#modal-addupdate2" data-id="<%= dataset[i].id%>" data-isActivity="<%= dataset[i].isActivity%>" data-activityPicture="<%= dataset[i].activityPicture%>">修改活动</button>
		  <% }%>
		  </td>
      </tr>
	<%}%>
    </tbody>
</script> 
<script src="../../../bower_components/jquery/dist/jquery.min.js"></script> 
<script src="../../../bower_components/jquery-ui/jquery-ui.min.js"></script> 
<script src="../../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script> 
<script src="../../../bower_components/raphael/raphael.min.js"></script> 
<script src="../../../bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script> 
<script src="../../../plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script> 
<script src="../../../plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script> 
<script src="../../../bower_components/jquery-knob/dist/jquery.knob.min.js"></script> 
<script src="../../../bower_components/moment/min/moment.min.js"></script> 
<script src="../../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script> 
<script src="../../../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="../../../bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.zh-CN.min.js"></script>  
<script src="../../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script> 
<script src="../../../bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> 
<script src="../../../bower_components/fastclick/lib/fastclick.js"></script> 
<script src="../../../dist/js/adminlte.min.js"></script> 
<script src="../../js/template-web.js"></script> 
<script src="../../js/js.js"></script> 
<script src="../../js/FinanceRechargeActivities.js"></script> 
</body>
</html>
